﻿using AutoMapper;
using StoreIModels;
using StoreISet.Applicationes.Command;

namespace StoreISet.AutoMapper
{
    public class StoreProfile: Profile
    {
        public StoreProfile()
        {
            CreateMap<StoreCreateCommand, StoreModel>().ReverseMap();
            CreateMap<StoreUpdateCommand, StoreModel>().ReverseMap();
           
            CreateMap<SystematicCreateCommand, SystematicModel>().ReverseMap();//分类相册添加
            CreateMap<SystematicUpdateCommand, SystematicModel>().ReverseMap();//分类相册修改
            CreateMap<PictureCreateCommand, PictureModel>().ReverseMap();//上传图片添加
            CreateMap<PictureUpdateCommand, PictureModel>().ReverseMap();//上传图片修改
            CreateMap<SystematicsortUpdCommand, SystematicModel>().ReverseMap();//分类排序修改
        }
    }
}
